#ifndef PSD_AUTH_PASS_H
#define PSD_AUTH_PASS_H

typedef struct psd_pass_user_info_t {
	char *username;
	char *password;
	char *email;
	char *institution;
	int activated;
} psdPassUserInfo;

typedef struct psd_pass_backend_t {
	char *name;
	psdPassUserInfo *(*get_user_info)(const char *username);
} psdPassBackend;

int psd_set_pass_backend(psdPassBackend *be);
psdPassUserInfo *psd_alloc_pass_user_info();
void psd_free_pass_user_info(psdPassUserInfo *ui);

#endif
